<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Capstone - Admin</title>
</head>
<body>
	<table>
		<tr>
			<th>Username</th>
			<th>First Name</th>
			<th>Last Name</th>
			<th>Email</th>
			<th>Role</th>
		</tr>
		<c:forEach var="user" items="${users }">
			<tr>
				<td>
					<form action="Users" method="POST">
						<input type="submit" value="${user.getUsername() }"/>
						<input type="hidden" name="id" value="${user.getId() }"/>
					</form>
				</td>
				<td>${user.getFname() }</td>
				<td>${user.getLname() }</td>
				<td>${user.getEmail() }</td>
				<td>${user.getRole() }</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>